import { createRouter, createWebHashHistory } from 'vue-router'

import Home from '../views/Home.vue'
import SceneDetail from '../views/SceneDetail.vue'
import Product from '../views/Product.vue'
import ProductSecond from '../views/ProductSecond.vue'
import ProductDetail from '../views/ProductDetail.vue'
import SolutionDetail from '../views/SolutionDetail.vue'
import Support from '../views/Support.vue'
import Solutions from '../views/Solutions.vue'
import Question from '../views/Question.vue'
import TrainView from '../views/TrainView.vue'
import TrainDetail from '../views/TrainDetail.vue'
import MaintenanceView from '../views/MaintenanceView.vue'
import DownloadList from '../views/DownloadList.vue'
import About from '../views/About.vue'
import Company from '../views/Company.vue'
import New from '../views/New.vue'
import Team from '../views/Team.vue'
import Partners from '../views/Partners.vue'
import Careers from '../views/Careers.vue'
import CareersDetail from '../views/CareersDetail.vue'
import NewDetail from '../views/NewDetail.vue'
import Contact from '../views/Contact.vue'
import SendMessage from '../views/SendMessage.vue'
import TradeShows from '../views/TradeShows.vue'
import Distributor from '../views/Distributor.vue'
import ContactUs from '../views/ContactUs.vue'

const staticRoutes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/sceneDetail',
    name: 'SceneDetail',
    component: SceneDetail
  },
  {
    path: '/',
    name: 'Product',
    component: Product
  },
  {
    path: '/product/type/:id',
    name: 'ProductSecond',
    component: ProductSecond
  },
  {
    path: '/product/detail',
    name: 'ProductDetail',
    component: ProductDetail
  },
  {
    path: '/solutions',
    name: 'Solutions',
    component: Solutions
  },
  {
    path: '/solutionDetail',
    name: 'SolutionDetail',
    component: SolutionDetail
  },
  {
    path: '/support',
    name: 'Support',
    component: Support
  },
  {
    path: '/support/question',
    name: 'Question',
    component: Question
  },
  {
    path: '/support/train',
    name: 'TrainView',
    component: TrainView
  },
  {
    path: '/support/trainDetail',
    name: 'TrainDetail',
    component: TrainDetail
  },
  {
    path: '/support/maintenance',
    name: 'MaintenanceView',
    component: MaintenanceView
  },
  {
    path: '/support/download',
    name: 'DownloadList',
    component: DownloadList
  },
  {
    path: '/about',
    name: 'About',
    component:About
  },
  {
    path: '/about/company',
    name: 'Company',
    component:Company
  },
  {
    path: '/about/new',
    name: 'New',
    component:New
  },
  {
    path: '/about/team',
    name: 'Team',
    component:Team
  },
  {
    path: '/about/partners',
    name: 'Partners',
    component:Partners
  },
  {
    path: '/about/careersDetail',
    name: 'CareersDetail',
    component:CareersDetail
  },
  {
    path: '/about/careers',
    name: 'Careers',
    component:Careers
  },
  {
    path: '/about/newDetail',
    name: 'NewDetail',
    component: NewDetail
  },
  {
    path: '/contact',
    name: 'Contact',
    component: Contact
  },
  {
    path: '/contact/message',
    name: 'SendMessage',
    component: SendMessage
  },
  {
    path: '/contact/distributors',
    name: 'Distributor',
    component: Distributor
  },
  {
    path: '/contact/trade',
    name: 'TradeShows',
    component: TradeShows
  },
  {
    path: '/contact/us',
    name: 'ContactUs',
    component: ContactUs
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes: staticRoutes
})

export default router
